#ifndef GLOBALS_H
#define GLOBALS_H
//******************************************************************************
//*this code is protected by the GNU affero GPLv3
//*author:Sylvain BERTRAND <sylvain.bertrand AT gmail dot com>
//*                        <digital.ragnarok AT gmail dot com>
//******************************************************************************
#define DPRINTF_BUF_SZ 2048
#define PERR(f,...) u_a_dprintf(0,g_dprintf_buf,DPRINTF_BUF_SZ,(k_u8*)f,\
                               __VA_ARGS__)
#define PERRC(s) sysc(write,3,0,s,sizeof(s))

#ifdef CLIENT_C
k_u8 *g_dprintf_buf;
k_i srv_so;//server *blocking* socket
#else
extern k_u8 *g_dprintf_buf;
extern k_i srv_so;
#endif

#endif
